#!/usr/bin/python
import os,string,cgi,time,re, sys,random,inspect
import curses

stdscr = curses.initscr()
begin_x = 20 ; begin_y = 7
height = 5 ; width = 40
win = curses.newwin(height, width, begin_y, begin_x)
while True:
    c = stdscr.getch()
    if c == ord('q'): break  # Exit the while()
    elif c == curses.KEY_HOME: x = y = 0

